<?php $this->load->view('common/admin_header');?>
<div class="block">
  <div class="block_head">
    <div class="bheadl"></div>
    <div class="bheadr"></div>
    <h2>新增設定</h2>
    <ul>
      <li><a href="<?=site_url('admins/settings');?>">取消</a></li>
    </ul>
  </div>
  <!-- .block_head ends -->
  <div class="block_content">
    <p class="breadcrumb">目前位置 &raquo; <a href="<?=site_url('admins/settings');?>">基本設定</a> &raquo; <strong>新增設定</strong></p>
    <?php $this->load->view('common/notify');?>
    <form id="form" action="<?=site_url('admins/settings/add_modify');?>" method="post" enctype="multipart/form-data">
        <input type="hidden" name="edit_id" value="<?=isset($edit_id)?$edit_id:''?>" />
          <p>
            <label>所屬組別:</label>
            <select name="group" class="styled">
              <option value="website" <?=set_select('group','website',TRUE)?>>一般設置</option>
              <option value="config" <?=set_select('group','config')?> >本地設置</option>
              <option value="images" <?=set_select('group','images')?> >圖片設置</option>
              <option value="other" <?=set_select('group','other')?> >自定義</option>
            </select>
          </p>
          <p>
            <label>使用Key:</label>
            <input type="text" class="text small" name="key" value='<?=set_value('key')?>'/>
          </p>
          <p>
            <label>對應Value:</label>
            <input type="text" class="text small" name="value" value='<?=set_value('value')?>'/>
          </p>
          <p>
            <label>描述設定:</label>
            <input type="text" class="text small" name="description" value='<?=set_value('description')?>'/>
          </p>
        <p>
          <input class="btn btn-primary" type="submit" name="btn_save" value="儲 存" />
          <input class="btn" type="reset" value="重 置"/>
        </p>
    </form>
  </div>
  <!-- .block_content ends -->
  <div class="bendl"></div>
  <div class="bendr"></div>
</div>
<!-- .block ends -->

<?php $this->load->view('common/admin_footer');?>
